


/**
 * 根据XML节点name获取Node
 * @param {} nodeName

function findNodeByTitle(nodeName){
	var _node = null;
	opts._graph.forEach(function (el) {
		if(el.title==nodeName){
			_node = el;			
		}
	});
	return _node;
}

 */



$(function(){

	configs.canvas = new Raphael("center",1600,600);//创建绘图对象
	createXml();
	//console.log('instanceId===='+$('#instanceId').val());
	//创建xml对象
	$.ajax({ 
		type:'post',
		url: "workflow/getFlowChart.shtml",
		dataType:'json',
		data:{
			instanceId:$('#instanceId').val()
		},
		success: function(result){
			//console.log('------------result------------');
			//console.log(result);
			xmlToProcess(result.flowXml);
		}
	});
});